package com.macken.wow.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class UserInfo {
	public Long uid;
	public int wowId;
	public String userName;
	public String userPwd;
	public String userEmail;
	public Long createTime;
	public String createIp;
	public Integer emailVerify;
	public String verifyCode;


	public Long getUid() {
		return uid;
	}



	public void setUid(Long uid) {
		this.uid = uid;
	}



	public int getWowId() {
		return wowId;
	}



	public void setWowId(int wowId) {
		this.wowId = wowId;
	}



	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public String getUserPwd() {
		return userPwd;
	}



	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}



	public String getUserEmail() {
		return userEmail;
	}



	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}



	public Long getCreateTime() {
		return createTime;
	}



	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}



	public String getCreateIp() {
		return createIp;
	}



	public void setCreateIp(String createIp) {
		this.createIp = createIp;
	}



	public Integer getEmailVerify() {
		return emailVerify;
	}



	public void setEmailVerify(Integer emailVerify) {
		this.emailVerify = emailVerify;
	}



	public String getVerifyCode() {
		return verifyCode;
	}



	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}



	public static final RowMapper<UserInfo> rowMapper = new RowMapper<UserInfo>() {

		public UserInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
			UserInfo u = new UserInfo();
			u.uid = rs.getLong("uid");
			u.wowId = rs.getInt("wow_id");
			u.userName = rs.getString("user_name");
			u.userPwd = rs.getString("user_pwd");
			u.userEmail = rs.getString("user_email");
			u.createTime = rs.getLong("create_time");
			u.createIp = rs.getString("create_ip");
			u.emailVerify = rs.getInt("email_verify");
			u.verifyCode = rs.getString("verify_code");
			return u;
		}
	};
}
